home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Word 5
/
The Word 5.adf
/
FiLeS
/
AREXX_EXAMPLES.lha
/
AREXX_EXAMPLES
/
Example14.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-02-25
|
921b
|
45 lines
/* Example 14 */
CR = '0A'x /* CR = Carriage Return */
FF = '0C'x /* FF = FormFeed (Clear Screen) */
ClearScreen = FF || CR /* || = concatenate : means Join together */
Do Forever
Say ClearScreen
Say " (A) - Archive"
Say " (B) - Batch"
Say " (C) - Catch"
Say ""
Say " (X) - Exit"
Say ""
Options Prompt "Enter Choice : "; pull choice 2
Choice = Upper(Chocie)
If Choice = "X" Then Do /* This is where we Quit */
Say "Exiting..."
Exit
End
Else If Choice = "A" Then Do
Say "Archive"
Call WaitForCR()
End
Else If Choice = "B" Then Do
Say "Batch"
Call WaitForCR()
End
Else If Choice = "C" Then Do
Say "Catch"
Call WaitForCR()
End
End
WaitForCR(): Procedure
Say ""
Options Prompt "Return to Continue"
Do Until C==""
Parse Pull c
End
Return